//
//  Scroll.m
//  shise
//
//  Created by 徐国庆 on 14/12/19.
//  Copyright (c) 2014年 MZP. All rights reserved.
//

#import "Scroll.h"

@implementation Scroll

// 重写纠错方法
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"detail"]) {
    
        self.api = [value objectForKey:@"api"];
    } else if ([key isEqualToString:@"pic"]) {
        
        self.pic_url = [value objectForKey:@"url"];
    } else if ([key isEqualToString:@"user"]) {
        
        self.avatar = [value objectForKey:@"avatar"];
        self.userId = [value objectForKey:@"id"];
    }
    
}



- (void)dealloc
{
    [_type release];
    [_title release];
    [_desc release];
    [_pics release];
    [_api release];
    [_pic_url release];
    [_avatar release];
    [_userId release];
    [_url release];
    [super dealloc];
}

@end
